package tw.com.msig.b2c.car.setting.service.impl;

import java.util.List;

import tw.com.msig.b2c.car.setting.dao.CarTypeDao;
import tw.com.msig.b2c.car.setting.service.CarTypeService;
import tw.com.msig.b2c.car.setting.vo.CarTypeVo;

public class CarTypeServiceImpl implements CarTypeService {
	
	private CarTypeDao carTypeDao;
	

	public void setCarTypeDao(CarTypeDao carTypeDao) {
		this.carTypeDao = carTypeDao;
	}
	

	@Override
	public List<CarTypeVo> getAll() {
		// TODO Auto-generated method stub
		return carTypeDao.findAll();
	}

	@Override
	public CarTypeVo getById(long id) {
		// TODO Auto-generated method stub
		return carTypeDao.findById(id);
	}

	@Override
	public void insert(CarTypeVo carTypeVo) {
		// TODO Auto-generated method stub
		carTypeDao.insert(carTypeVo);
	}

	@Override
	public void update(CarTypeVo carTypeVo) {
		
		carTypeDao.update(carTypeVo);
	}

	@Override
	public void delete(CarTypeVo carTypeVo) {
		// TODO Auto-generated method stub
		carTypeDao.delete(carTypeVo);
	}

}
